// ---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Logout.h"
// ---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "BaseDialogModuleForm"
#pragma link "cxGraphics"
#pragma link "cxLocalization"
#pragma resource "*.dfm"
TULogout *ULogout;

// ---------------------------------------------------------------------------
__fastcall TULogout::TULogout(TComponent* Owner) : TUBaseDialogModuleForm(Owner) {
}

// ---------------------------------------------------------------------------
void __fastcall TULogout::BeforeShow() {
	this->DisPlayerEanble = false;
	typedef void __fastcall(__closure * func)(void);
	func Logout;
	GetPublishMethodPtr(Logout, Application->MainForm, "Logout");
	Logout();
	this->Close();
}
// ---------------------------------------------------------------------------
